﻿#region 命名空间

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using WinnerCMS.Common;
using WinnerCMS.Data;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.BLL.PageFactory
{
    [ToolboxData("<{0}:Announces runat=\"server\"></{0}:Announces>")]
    //[PartialCaching(10, "ParentId;Level")]
    public class Announces : DataBox
    {
        private static readonly AnnounceManage Mybll = new AnnounceManage();

        #region 级别

        public int Rows { get; set; }

        #endregion

        protected override void OnLoad(EventArgs e)
        {
            DataSource = Mybll.BindList(Rows);

            DataBind();
        }
    }
}